$(document).ready(function(){	
		$("#butSignup").click(function() {
			alert("form:"  + $("#signupForm").valid());
			
			if($("#signupForm").valid()) {
				$.ajax({
					type: 'POST', 
					url: "../open/createUser", 
					data: $("#signupForm").serialize(),
					datatype: "json", 
					success: function (response) {
						alert(response.message);
					}, 
					error: function(returnObject, ajaxOptions, thrownError) {
						alert("Some problem in saving the record : ");
					}
				});
			} else {
				alert("Please correct the below form errors");
			}
		});
});
